]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
grabHelper: Ungrab the entire stack on "outside clicks"
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 15 Sep 2012 14:45:00 +0000 (16:45 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 18 Sep 2012 16:45:41 +0000 (18:45 +0200)
Currently clicks outside the grabbed actors are handled the same as
the user pressing Escape - a single actor is popped from the grab stack.
However according to the design, outside clicks should release all grabs.

https://bugzilla.gnome.org/show_bug.cgi?id=682243

js/ui/grabHelper.js

index 6c7511fdf1931b80a221649feda197d2a71b5bc9..9249828c695c498c272d71daef2f9e490434e43c 100644 (file)
@@ -330,7 +330,7 @@ const GrabHelper = new Lang.Class({
             // which should be a release event.
             if (press)
                 this._ignoreRelease = true;
-            this.ungrab();
+            this.ungrab({ actor: this._grabStack[0].actor });
         }
 
         return this._modalCount > 0;